-
Notifications
You must be signed in to change notification settings - Fork 2
Compute transaction input for executing transactions #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
crates/format/src/input.rs
Outdated
| Literal(String), | ||
| AddressRef(String), // will be "Contract.address" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be a doc-comment
| Literal(String), | |
| AddressRef(String), // will be "Contract.address" | |
| Literal(String), | |
| /// For example: `Contract.address` | |
| AddressRef(String), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please apply the suggestion or fix it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in the new revision
xermicus
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CI keeps failing, can you please make it green before we merge.
crates/core/src/driver/mod.rs
Outdated
| } | ||
| } | ||
| Err(err) => { | ||
| log::debug!( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this should bail out too shouldn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I was planning to look over all the bad condition and bail out them.
crates/core/src/driver/mod.rs
Outdated
| } | ||
| } | ||
| } else { | ||
| log::debug!( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in the new revision
crates/core/src/driver/mod.rs
Outdated
| .insert(contract_name.clone(), parsed_abi); | ||
| } | ||
| Err(err) => { | ||
| log::debug!( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also here. Although it should never happen that this doesn't parse. Please error out early.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in the new revision
crates/format/src/input.rs
Outdated
| Literal(String), | ||
| AddressRef(String), // will be "Contract.address" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please apply the suggestion or fix it?
xermicus
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Compute transaction input for executing transactions. For this, we extracted the ABI property from the metadata property (after compilation process) and we created the parameters and the metadata that needs to be send to the deployed contract in order to execute it.